﻿		<div id="content">
		{if !empty($error)}
			<div class="error">{$error}</div>
		{/if}
		{if !empty($message)}
			<div class="success">{$message}</div>
		{/if}		
			<div class="signupform">
				<div class="content">
					<fieldset>
						<legend>สมัครสมาชิก</legend>
						<form action="{$APP_URL}/signup" method="POST" id="signup">
							<table>
								<tr>
									<td width="150"><label>ชื่อผู้ใช้</label></td>
									<td width="500"><input type="text" name="username" class="input-text validate['required','alphanum']" size="50"></td>
								</tr>
								<tr>
									<td width="150"><label>รหัสผ่าน</label></td>
									<td width="500"><input type="password" name="password" class="input-text validate['required','length[4,-1]','alphanum']" size="50"></td>
								</tr>
								<tr>
									<td width="150"><label>ยืนยันรหัสผ่าน</label></td>
									<td width="500"><input type="password" name="c-password" class="input-text validate['confirm[password]']" size="50"></td>
								</tr>				
								<tr>
									<td width="150"><label>อีเมล์</label></td>
									<td width="500"><input type="text" name="email" class="input-text validate['required','email']" size="50"></td>
								</tr>
								<tr>
									<td width="150"><label>{$captcha}</label></td>
									<td width="500"><input type="text" name="captcha" class="input-text validate['required','digit']" size="50"></td>
								</tr>								
							</table>
						<div style="margin:10px 0 0 4px;"><button type="submit" class="super secondary small">ตกลง</button> <button type="reset" class="super secondary small">ยกเลิก</button></div>
						</form>
					</fieldset>
				</div>
			</div>		
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->
	{literal}
		<script type="text/javascript">
		window.addEvent('domready', function(){
			new FormCheck('signup', {'trimValue': true});
		});
		</script>
	{/literal}